package models

import (
	"github.com/goravel/framework/database/orm"
)

type Role struct {
	orm.Model
	Name   string  `gorm:"type:varchar(255);column:name;not null;unique" form:"name" json:"name"`
	Value  string  `gorm:"type:varchar(255);column:value;not null;unique" form:"value" json:"value"`
	Remark string  `gorm:"type:varchar(255);column:remark;not null;" form:"remark" json:"remark"`
	Status int     `gorm:"type:int;column:status;not null;" form:"status" json:"status"`
	Users  []*User `gorm:"many2many:role_user"`
}
